<template>
  <view class="colorB padding-10  ">
    <view class="border-10 mainColor">
      <view class="padding-10">账户余额：{{adapayMember.acctBalance}}
        <p>账户余额 = 可用余额 + 冻结余额</p>
      </view>
      <view class="padding-10">可用金额：{{adapayMember.avlBalance}}
        <p>该余额大于0时，才可发起取现</p>
      </view>
      <view class="padding-10">冻结金额：{{adapayMember.frzBalance}}
        <p>当配置了自动结算功能，在每日发起结算时会将可用余额转为冻结金额。该部分金额不允许取现。</p>
      </view>
      <view class="padding-10">昨日日终余额：{{adapayMember.lastAvlBalance}}</view>
    </view>
  </view>
</template>

<script>
  import {
    queryAdapayAccountBalance,
  } from "@/api/adapayMember/adapayMember";
  export default {
    props: ['merchantId'],
    data() {
      return {
        adapayMember: {}
      }
    },
    methods: {
      // 查询汇付会员基本信息
      getList() {
        console.log("this.merchantId", this.merchantId);
        let param = {
          merchantId: this.merchantId,
        };
        queryAdapayAccountBalance(param).then((response) => {
          console.log("查询 queryAdapayAccountBalance", response);
          this.adapayMember = response.data;
        });
      },

    },
    created() {
      this.getList();
    }
  }
</script>

<style>
</style>